package com.example.patient.dto.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author wxy
 * @Date 2021/1/21 10:36
 * @Version 1.0
 */
@Data
@ApiModel(value = "随访详情返回体")
public class MyFollowrDetailResp implements Serializable {
    private static final long serialVersionUID = 3427621929873153501L;

    @ApiModelProperty(value = "tName")
    @JSONField(name = "tName")
    private String tName;
    @ApiModelProperty(value = "qaList")
    @JSONField(name = "QAList")
    private List<QAListResp> qaList;

    @Data
    public static class QAListResp implements Serializable {
        private static final long serialVersionUID = -3012219305046522589L;

        @ApiModelProperty(value = "qContent")
        @JSONField(name = "QContent")
        private String qContent;
        @ApiModelProperty(value = "qType")
        @JSONField(name = "QType")
        private Integer qType;
        @ApiModelProperty(value = "answer")
        @JSONField(name = "Answer")
        private List<AnswerResp> answer;
    }

    @Data
    public static class AnswerResp implements Serializable {
        private static final long serialVersionUID = 5767812904709807575L;

        @ApiModelProperty(value = "id")
        @JSONField(name = "ID")
        private Long id;
        @ApiModelProperty(value = "fid")
        @JSONField(name = "FID")
        private Long fid;
        @ApiModelProperty(value = "aItem")
        @JSONField(name = "AItem")
        private String aItem;
        @ApiModelProperty(value = "chk")
        @JSONField(name = "Chk")
        private Boolean chk;
    }

}
